package principle.DependenceInversionPrinciple.perfection;

import principle.DependenceInversionPrinciple.origon.BetUser;

import java.util.ArrayList;
import java.util.List;

/**
 * @author： pang-yun
 * @date： 2021-08-25 20:50
 * 功能目的 ：用于
 */

public class DrawTest {
    public static void main(String[] args) {
        ArrayList<BetUser> betUsers = new ArrayList<>();
        betUsers.add(new BetUser("AA",98));
        betUsers.add(new BetUser("BB",198));
        betUsers.add(new BetUser("CC",8));
        betUsers.add(new BetUser("DD",398));
        betUsers.add(new BetUser("EE",498));

        DrawControl drawControl = new DrawControl();
        List<BetUser> userList = drawControl.doDraw(new DrawRandom(),betUsers, 3);
        userList.stream().forEach(a-> System.out.println(a));
    }
}
